import request from "@/utils/request";

// 查询积分调整记录列表
export function listHistory(query) {
  return request({
    url: "/library/boIntegralHistory/list",
    method: "get",
    params: query,
  });
}

// 查询积分调整记录详细
export function getHistory(id) {
  return request({
    url: "/library/boIntegralHistory/" + id,
    method: "get",
  });
}

// 新增积分调整记录
export function addHistory(data) {
  return request({
    url: "/library/boIntegralHistory",
    method: "post",
    data: data,
  });
}

// 修改积分调整记录
export function updateHistory(data) {
  return request({
    url: "/library/boIntegralHistory",
    method: "put",
    data: data,
  });
}

// 删除积分调整记录
export function delHistory(id) {
  return request({
    url: "/library/boIntegralHistory/" + id,
    method: "delete",
  });
}
